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