Error-signal generation for pseudonoise tracking loops