Tesseroids: Forward-modeling gravitational fields in spherical coordinates