definition of hardness of material