Linear theory of diffraction radiation oscillators