Use of the generalized eikonal in the analytic solution of the problem of electromagnetic-wave diffraction by a 2D perfectly conducting half-plate