Indentation Analysis of Elastic-Plastic Homogeneous and Layered Media: Criteria for Determining the Real Material Hardness