Ab initio calculations of quadrupole interactions and their isotope effects