Which process is involved in the formation of a metamorphic rock?