Post-sample aperture for low background diffraction experiments at X-ray free-electron lasers