Photonic crystals and topological photonics