Dynamic Three-Dimensional Measurement Technology Based on Gray Code and Phase-Shifting Algorithm