CASCI Reference Wave Functions for Multireference Perturbation Theory Built from Hartree-Fock or Kohn-Sham Orbitals.