Spherical and spheroidal shells as models in magnetic detection