Electronic and optical properties of boron-doped nanocrystalline diamond films