Input and output in damped quantum systems. II. Methods in non-white-noise situations and application to inhibition of atomic phase decays