Biological markets and the effects of partner choice on cooperation and friendship