Anomalous X-ray scattering study of aqueous solutions of YCl3 and ErCl3