Code acquisition in CDMA cellular mobile networks. Part I: Theory