Robustness of Shor's algorithm with limited set of rotation gates