Criterion for surface contact deformation of metals