Generic Model Predictive Control Framework for Advanced Driver Assistance Systems