A Joint Acquisition Algorithm Based on Primary Code and Secondary Code for GNSS Signals