Exploiting photosensitivity in chalcogenide-assisted integrated optics