Phase-shifting interferometry: minimization of systematic errors