DEGREE CONES AND MONOMIAL BASES OF LIE ALGEBRAS AND QUANTUM GROUPS