Biologically based distributed control and local reflexes improve rough terrain locomotion in a hexapod robot