Text this: A Rigorous Circuit Model for Simulation of Large-Scale Photonic Integrated Circuits