Theory of noise in solid state, gas, and semiconductor lasers