MedIQA: A Scalable Foundation Model for Prompt-Driven Medical Image Quality Assessment