Frequency tracking for heterodyne optical communications using semiconductor lasers