Laser-induced in situ synthesis of Pd and Pt nanoparticles on polymer films