Relation between impact load and the damage produced by cavitation bubble collapse