Rank structures of generalized inverses of rectangular banded matrices