FedDL: Federated Learning via Dynamic Layer Sharing for Human Activity Recognition