Gas evolution characterization and phase transformation during thermal treatment of cathode plates from spent LiFePO4 batteries