Mind the Gap: Federated Learning Broadens Domain Generalization in Diagnostic AI Models