Current-induced nanogap formation and graphitization in boron-doped diamond films