Data-driven Switched Affine Modeling for Model Predictive Control