Two-scale convergence of some integral functionals