Mechanically flexible waveguide arrays for optical chip-to-chip coupling