Model for the magnetism of nearly spherical metallic particles