Kirigami-inspired technique manipulates light at the nanoscale