what are the components of rocks