Experimental system for X-ray magnetic diffraction under extreme conditions