Reputation design for adaptive networks with selfish agents