Generalized comparison theorems in quantum mechanics