Surface-wave behavior of a phased array analyzed by the grating-lobe series