Measuring the topological phase through the interface states between metasurfaces and photonic crystals