Text this: Discriminating chaotic and stochastic time series using permutation entropy and artificial neural networks