Electromagnetic field representations and computations in complex structures I: complexity architecture and generalized network formulation | Synapse