Spectroscopic Studies of Structural Dynamics Induced by Heating and Hydration: A Case of Calcium-Terephthalate Metal–Organic Framework