Learning and inference algorithms for partially observed structured switching vector autoregressive models