Self-writing a waveguide in glass using photosensitivity