Generalization techniques to reduce the number of volume elements for terrain effect calculations in fully analytical gravitational modelling