Static polarizability and second hyperpolarizability of closed- and open-shell pi-conjugated polymers.