Spatial competition with endogenous location choices: An application to discount retailing