CO-PFL: Contribution-Oriented Personalized Federated Learning for Heterogeneous Networks