Foundation for electric network theory