Mode hopping in external-cavity diode lasers