The Endogenous Price Dynamics of Emission Allowances and an Application to CO2 Option Pricing