Sequential Contrastive Learning to Master Effective Representations For Reinforcement Learning and Control