Variational methods for microstructural evolution