Dendrimer-encapsulated nanoparticles as model electrocatalysts