Dynamics of shallow impact cratering.