Reactions of coals with hydrogen and carbon monoxide as a probe for the investigation of coal structure