Retrieval-Augmented Code Generation for Universal Information Extraction