Irreducible ideals of finitely generated commutative monoids