Variational approximation of the geometric motion of fronts