Classical and Quantum Theory of Non-Conservative Electric Circuits