Second- and third-order dispersion compensation using a high resolution arrayed-waveguide grating