Comparing recurrent and convolutional neural networks for predicting wave propagation