A frontier functions approach to optimal scales of sustainable production. (October 2014)