Generalized Inverses of Block Triangular Matrices