Synthesis, characterization, and surface immobilization of metal nanoparticles encapsulated within bifunctionalized dendrimers