MDP for integral functionals of fast and slow processes with averaging