The roles of hardness in the sliding behavior of materials