Successor Features Support Model-based and Model-free Reinforcement Learning