Hartree-Fock density functional theory works through error cancellation for the interaction energies of halogen and chalcogen bonded complexes