Finite element analysis of polarization characteristics of chiral gratings