Photonics and optoelectronics