Optical gain measurements and photoquenching in laser grade dyes