Physiological profiles and demographic rates in relation to food quantity and predictability: an optimization approach