Template-assisted assembly of transition metal nanoparticles on oxide ultrathin films