Adjusting learning motivation to promote cooperation