Polarization gratings in photosensitive Langmuir-Blodgett films and chiral liquid crystalline polymers