classification of rocks composition and origin