Genetic algorithm-based design method for multilevel anisotropic diffraction gratings