Identification of hybrid and linear parameter-varying models via piecewise affine regression using mixed integer programming