What properties of minerals allow them to be used as gemstones such as diamonds?