Valence-electron-only calculations of electronic structure