Models of tar formation during coal devolatilization