Towards a Unified Framework of Contrastive Learning for Disentangled Representations