Text this: Models of waveguides combining gradient and nonlinear optical layers