Ham factors and energy levels in multimode Jahn-Teller systems