Average-cost Pricing, Increasing Returns, and Optimal Output in a Model With Home and Market Production