Variational approaches to the molecular electronic structure problem based on symmetry-projected Hartree--Fock configurations