Electronic spin states of ferric and ferrous iron in the lower-mantle silicate perovskite