Tilt-shift error detection in phase-shifting interferometry