Correction of carrier lifetime measurements of semiconductor lasers