Construction of EPr generalized inverses by inversion of nonsingular matrices