Analysis of laser-amplifier noise: A review of the method and its application to optical communications