classification of mineral according the process of formation