Control of NOx emissions from energy production