C-ICL: Contrastive In-context Learning for Information Extraction