Many properties of a mineral are related to the