Threshold electronic structure at the oxygen K edge of 3d transition metal oxides: a configuration interaction approach.