Application of semi-inverse variational principle to cubic-quartic optical solitons with kerr and power law nonlinearity