Optimum Detection of Spread Spectrum Signals