Federated Transfer Learning with Dynamic Gradient Aggregation