Organic light-emitting transistors with a thin metal layer covering a diffraction grating