Diamond nucleation by hydrogenation of the edges of graphitic precursors