Multiple integrals under differential constraints: Two-scale convergence and homogenization