Air-fuel ratio and spark-advance requirements of spark-ignition engines