Understanding CO oxidation reaction on platinum nanoparticles