Hartree-Fock and DFT calculations of quadrupole coupling constants in water clusters and ice