Igneous, sedimentary, and metamorphic rocks formation processes