Calculation of coupling to slow and fast waves in the LHRF from phased waveguide arrays