Asymptotic spherical shapes in some spectral optimization problems