An expected utility theory for state-dependent preferences