Assortative mating based on cooperativeness and generosity