A New Approach to Hospital Cost Functions and Some Issues in Revenue Regulation