Diffraction and Polarization Properties of a Liquid Crystal Grating