Contrastive Normalizing Flows for Uncertainty-Aware Parameter Estimation