Mathematical models of the thermal decomposition of coal: 1. The evolution of volatile matter