New two-dimensional boron nitride allotropes with attractive electronic and optical properties