Ratemaking for Energy Pipelines