Computes the integral of a polynomial over the sphere. Similar to the (MIT licensed) code in https://people.sc.fsu.edu/~jburkardt/f77_src/hypersphere_integrals/hypersphere_integrals.f.