Formulation of the State-space Equations for Non-linear Networks