Filling gaps in wave records with artificial neural networks