Spatial Competition with Heterogeneous Firms