In which of the following ways are metamorphic rocks formed?