Modeling impacts between a continuous system and a rigid obstacle using coefficient of restitution