Electronic structures of B 2p and C 2p levels in boron-doped diamond films studied using soft x-ray absorption and emission spectroscopy