Reward motivation transforms the structure of episodic memory