Integration of direct combustion with gasification for reduction of NOx emissions