Ermakov–Ray–Reid Reductions of Variational Approximations in Nonlinear Optics