Resonant inelastic x-ray incarnation of Young’s double-slit experiment