In situ x-ray-scattering study of the Au(001) reconstruction in alkaline and acidic electrolytes.