Control of Impact for a Hammering Robot Using a Flexible Link