Carbon on platinum substrates: from carbidic to graphitic phases on the (111) surface and on nanoparticles.