Irreversible port-Hamiltonian systems: A general formulation of irreversible processes with application to the CSTR uri icon