https://www.allaboutcircuits.com/textbook/digital/chpt-3/cmos-gate-circuitry/