All-Optical and Thermal Tuning of a Bragg Grating Based on Photosensitive Composite Structures Containing Liquid Crystals