Variational convergence for functionals of Ginzburg-Landau type