Robustness of quantum-randomness expansion protocols in the presence of noise