Optical soliton perturbation with complex Ginzburg-Landau equation by semi-inverse variational principle