A New Approach for the Time-domain Analysis of Integrated Optical Circuits