Energy Minimization and Kirchhoff’s Laws in Negative Capacitance Ferroelectric Capacitors and MOSFETs