Photonic crystal polarizers and polarizing beam splitters