Perovskite-like fluorides and oxyfluorides: Phase transitions and caloric effects