internal process of the origin of minerals