Prompt Me Up: Unleashing the Power of Alignments for Multimodal Entity and Relation Extraction