Electronic structure and optical properties of graphyne-like BN nanotubes