An Evaluation Criterion for Adaptive Neighbor Selection in Heterogeneous Peer-to-Peer Networks