Spectral, initial value approach for viscoelastic relaxation of a spherical earth with a three-dimensional viscosity—I. Theory