Model-sharing Games: Analyzing Federated Learning Under Voluntary Participation