Expected performance of waveguide grating routers in the presence of random phase and amplitude errors