FedChain: A Collaborative Framework for Building Artificial Intelligence Models Using Blockchain and Federated Learning