Mie theory for electromagnetic scattering by spherical objects