Intertemporal substitution and nonhomothetic preferences