The effect of dye photodegradation on the performance of dye lasers