How animals distribute themselves in space: variable energy landscapes