Structure and electrochemical applications of boron-doped graphitized carbon nanofibers