Self-calibrating generalized phase-shifting interferometry of three steps by fitting modulation light to a polynomial of degree K