Generalizations of Artin and Coxeter monoids