Determination of Atom-Surface van der Waals Potentials from Transmission-Grating Diffraction Intensities