Kron’s method and cell complexes for magnetomotive and electromotive forces