Adaptive Optimal Control Via Reinforcement Learning : Theory And Its Application To Automotive Engine Systems