First principles studies of point defects and impurities in cubic boron nitride