Photonic crystal topological design for polarized and polarization-independent band gaps by gradient-free topology optimization.