Oxidation and reduction of Pd(100) and aerosol-deposited Pd nanoparticles