Permanent magnetism in phosphine- and chlorine-capped gold: from clusters to nanoparticles