MIM-Refiner: A Contrastive Learning Boost from Intermediate Pre-Trained Representations