First-principle studies of electronic structure and C-doping effect in boron nitride nanoribbon