Competitive location and pricing on a line with metric transportation costs