Public Education Cost Frontier Models: Theory and an Application