Fabrication of Lyotropic Alignment Layers for Thermotropic Liquid Crystals Facilitated by a Polymer Template