Liouville type theorems for Hartree and Hartree–Fock equations