DIM: Dynamic Integration of Multimodal Entity Linking with Large Language Model