Calculus on MDPs: Potential Shaping as a Gradient