Understanding decoherence as an irreversible process