what happen to rocks when it is exposed to higher temperature