Ergodic model for the expansion of spherical nanoplasmas