Ordering of localized electronic states in multiferroic TbMnO3: a soft x-ray resonant scattering study