Electronic Structure and Spontaneous Polarization in BiFeO3