On the equivalence of different techniques for evaluating the Green function for a semi-infinite system using a localized basis