Thermal stability of platinum nanowires: a comparison study between single-crystalline and twinned structures