General Theory of Cycle-Dependence of Total pi-Electron Energy