minerals are the building blocks of rocks