Partial factorization of wave functions for a quantum dissipative system