Bulk-boundary correspondence of topological insulators from their respective Green’s functions