Thermal and mass analyses of fluorination process with ammonium bifluoride