Thermal decomposition of ammonium hexafluoroaluminate and preparation of aluminum fluoride