Text this: Phase-field modeling of multi-domain evolution in ferromagnetic shape memory alloys and of polycrystalline thin film growth