Synthesis of core–shell silver–platinum nanoparticles, improving shell integrity