Optical heterodyne grating interferometry for displacement measurement with subnanometric resolution