A general criterion to study the well-posedness of the equations of networks of interconnects and nonlinear lumped circuits