The Relationship between Joint Products, Collective Goods, and External Effects