Ohm's law for magnetic circuits