In the diagram below, S is the market supply curve, and S1 is a supply curve comprising all costs of production, including external costs. Assume that the number of people affected by these external costs is large. How could the government establish an optimal allocation of resources in this market? Explain your answer.