The sensory basis of obstacle avoidance by flying bats