Characterization of phase noise in semiconductor lasers