calculate the slope between waypoints of a GPX route