Automated routing and control of silicon photonic switch fabrics