Synthesis algorithm for a phase shift control system using generalized Galerkin method