Endogenous Neighborhood Formation in a Local Coordination Model with Negative Network Externalities