Dispersion relation for spherical electromagnetic resonances in the atmosphere