Controlling interface states in 1D photonic crystals by tuning bulk geometric phases.