A high-temperature furnace for in situ synchrotron X-ray spectroscopy under controlled atmospheric conditions