Classical size dependence of the work function of small metallic spheres