Optimal Foraging: Sit-and-wait Predators that Maximize Energy