Versatility of photoalignment techniques: From nematics to a wide range of functional materials