Synchrotron X-ray diffraction studies on magnetic materials in high magnetic fields