Controlling the intensity, frequency, phase, polarisation or direction of the emitted radiation, e.g. switching, gating, modulating or demodulating by controlling the mutual position or the reflecting properties of the reflectors of the cavity {, e.g. by controlling the cavity length} one of the reflectors being constituted by a diffraction grating