Chemical bond and electronic structure anisotropies in the graphitic and rhombohedral modifications of boron nitride