the hardness of minerals is most closely related to