The ecological rationality of state-dependent valuation.