Precise optical heterodyne beat frequency from laser diodes locked to atomic resonances