The distributed-energy chain model for rapid coal devolatilization kinetics. Part I: Formulation