Modelling and controlling one-degree-of-freedom impacts under elastic/plastic deformations