A model of coal devolatilization and combustion in fluidized beds