how to find magnitude of acceleration