UniTS: A Universal Time Series Analysis Framework with Self-supervised Representation Learning