Fabrication of self-written waveguide in photosensitive polyimide resin by controlling photochemical reaction of photosensitizer