Improving the participation of resource-constrained devices in federated learning