Analog+digital phase and frequency detector for phase locking of diode lasers