Nanometer-scale displacement sensor based on phase-sensitive diffraction grating.