Modeling microstructural evolution and phase transformations in material science