Price and quantity competition among heterogeneous suppliers with two-part pricing: applications to clubs, local public goods, networks, and growth controls