Dynamical evolution of the Hungaria asteroids