The geoid constraint in global geodynamics: viscosity structure, mantle heterogeneity models and boundary conditions