First-principles study of intermediate-spin ferrous iron in the Earth's lower mantle