Effects of nitrates on hydrocarbon-air flames and detonations