A Versatile Approach to the Synthesis of Functionalized Thiol-protected Palladium Nanoparticles