Feature Diversification and Adaptation for Federated Domain Generalization