Extraction of the muon signals recorded with the surface detector of the Pierre Auger Observatory using recurrent neural networks