Joint learning of a network of linear dynamical systems via total variation penalization