Principles of inverter circuits