Alignment structures and diffraction properties of chiral nematic liquid crystal cells with periodically patterned photoalignment films