Phase-field models in materials science