Generalized model of heat transfer and volatiles evolution inside particles for coal devolatilization