Study of electronic and optical properties of boron arsenide