Patterned optical properties in photopolymerized surface-aligned liquid-crystal films