ES-GNN: Generalizing Graph Neural Networks Beyond Homophily with Edge Splitting