what happens to rock when it exposed to higher temperature