Determination of water of crystallization