Crystal chemistry and ab initio prediction of ultrahard rhombohedral B2N2 and BC2N