Multi-level Adaptive Contrastive Learning for Knowledge Internalization in Dialogue Generation