Design of AWG devices for all-optical time-frequency packing