What is the difference between learning a value function and a policy in reinforcement learning?