FIRST-PRINCIPLES STUDY OF NANODIAMOND DOPED WITH B AND N