Resonant prism mode selector for gas lasers