Volatilization processes during heating of coals and model polymers