Semiconductor photonics. Principles and applications