Technological change and the timing of mitigation measures