Upper limit on the cosmic-ray photon flux above 10^19 eV using the surface detector of the Pierre Auger Observatory