Phase shifter with adjustable resolution for phase-shifting interferometry