EHRFL: Federated Learning Framework for Heterogeneous EHRs and Precision-guided Selection of Participating Clients