Electronic and optical properties of mercury-containing borate