Automatic absolute frequency calibration of tunable optical sources