Bulk-Boundary Correspondence for Non-Hermitian Hamiltonians via Green Functions.