Optical Soliton Perturbation with Generalized Quadratic–Cubic Nonlinearity by Semi-Inverse Variation