Essays on social networks and cooperation: the case of natural resources