Synchronous mode locking of semiconductor laser diodes by a picosecond optoelectronic switch