Dynamic Fog Computing for Enhanced LLM Execution in Medical Applications