Direct Photoalignment and Optical Patterning of Molecular Thin Films