Error analysis of PML-FEM approximations for the Helmholtz equation in waveguides