Quasi-common-optical-path heterodyne grating interferometer for displacement measurement