The electrolysis of oxygenated boron containing materials