Electronic and magnetic states of Fe ions in Co2FeBO5