define hardness in mechanical properties