Optimal Pricing for Distance-Based Transit Fares