Estimating the relative stability of polymorphs and hydrates from heats of solution and solubility data.