Obtaining phase-optimized states from superpositions of coherent states in phase-sensitive attenuating/amplifying reservoirs