Electronic structure of the alpha and delta phases of Bi2O3: A combined ab initio and x-ray spectroscopy study