Environmental Regulation and the Extensive Margin of Firms