Optical analysis of laser systems using interferometry