how to find magnitude of acceleration given velocity and distance