Reconstruction of events recorded with the surface detector of the Pierre Auger Observatory