Generalized Orthogonal Sequences and Their Applications in Synchronous CDMA Systems