Γ-convergence of functionals on divergence-free fields