Use of thermogravimetry for proximate analysis of coals and cokes