Silicon and silicon carbide photonics and the applications