Surface X-ray scattering studies of the growth of Pd thin films on the Pt(001) electrode surface and the effects of the adsorption of CO