Title: Modelling nitric oxide formation and the effects of trapped residual gas on combustion in spark-ignition engines