Wannier-function methods for topological modes in one-dimensional photonic crystals