Graphitization and microstructure transformation of nanodiamond to onion-like carbon