Excimer laser gain by pulse shape analysis