Viscous drag of a solid sphere straddling a spherical or flat surface