First-principles calculations on structural, magnetic and electronic properties of oxygen doped BiF3