Photoalignment of liquid crystals and development of novel glassy liquid crystals