Bandgap energy of graphite-like hexagonal boron nitride