In situ studies of carbon formation leading to metal dusting in syngas