Dissipation stabilization of multi-qubit and multi-qutrit states