Modelling the Impact Dynamics of Robotic Manipulators