Phase-shifting interferometry by wave amplitude modulation: General case