An instrument for measurements with standing X-ray wavefields in ultra-high vacuum