Gains: Fine-grained Federated Domain Adaptation in Open Set