What can I do here? A Theory of Affordances in Reinforcement Learning