what is hardness in engineering