Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop