Synchrotron X-ray diffraction investigation of the anomalous behavior of ice during freezing of aqueous systems