What determines the properties of minerals?