A Methodology for the Definition of Optimal Control Strategies of a VVT-Equipped SI Engine