Results of research into the physicochemical processes of detonation synthesis and nanodiamond applications