Quantum fixed-point search algorithm with general phase shifts