Predation risk and microhabitat preference: an experimental study of the behavioral responses of prey and predator