Fluoride-rich, hydrofluorothermal routes to functional transition metal (Mn, Fe, Co, Cu) fluorophosphates.