Dynamics of Capital Investment and Pollution Externalities in Wholesale Electricity Markets