Pyrolysis characteristics, artificial neural network modeling and environmental impact of coal gangue and biomass by TG-FTIR.