A system identification approach to clustering vector autoregressive time series