Type-II-->type-I transition in (GaX)n/(InX)n (001) superlattices (X=P, Sb) as a function of period n.