Principles of Electric and Magnetic Circuits