Inverse Distance Aggregation for Federated Learning with Non-IID Data