Dynamical model for the ABC effect