Non-invasive monitoring and control in silicon photonics using CMOS integrated electronics