Large deviations for diffusion processes with homogenization and applications