Resonating valence bond wave function with molecular orbitals: application to first-row molecules.