Title: Adaptive ignition timing control for internal combustion engines