A General Conceptual Framework for Decoherence in Closed and Open Systems