Many-Electron Theory of Nonclosed-Shell Atoms and Molecules. I. Orbital Wavefunction and Perturbation Theory | Synapse