Application of a thermodynamic model with a complex chemistry to a cycle resolved knock prediction on a spark ignition optical engine