On the combustion and pyrolysis of fossil and alternative fuels to minimize their environmental impacts