H2-FDetector: A GNN-based Fraud Detector with Homophilic and Heterophilic Connections