Optical Soliton Solutions of the Cubic-Quartic Nonlinear Schrödinger and Resonant Nonlinear Schrödinger Equation with the Parabolic Law