The effect of divalent cations on the vibrational properties of the water molecule in crystal hydrates