Distributed LLMs and Multimodal Large Language Models: A Survey on Advances, Challenges, and Future Directions