Inequity aversion improves cooperation in intertemporal social dilemmas