Dynamic Contrastive Learning for Time Series Representation