Numerical and experimental study of the effects of noise on the permutation entropy