Method and system for phase measurement of the heterodyne interference system