A matlab toolbox for spherical harmonics