Photoalignment of Liquid Crystalline Materials: Physics and Applications