Conditions and mechanism of formation of nano-polycrystalline diamonds on direct transformation from graphite and non-graphitic carbon at high pressure and temperature