Improved differential detection of chip-level differentially encoded spread-spectrum signals