Design of arrayed-waveguide optical switch employing window function for crosstalk reduction