Generalized inverses of substochastic matrices