Rings satisfying generalized Engel conditions