An analytical approach for the evaluation of the optimal combustion phase in spark ignition engines