Digital synchronization for continuous-variable quantum key distribution