Light-Emitting Diodes and Photodetectors