Electronic and optical properties of boron-based hybrid monolayers