Average-cost Pricing, Increasing Returns, and Optimal Output: Comparing Home and Market Production