GrASP: Gradient-Based Affordance Selection for Planning