Ontogeny of minerals