Ab initio simulations on the atomic and electronic structure of single-walled BN nanotubes and nanoarches.