Ab initio configuration interaction study of the X3ϵ−, a1Δ and b1ϵ+ states of so and S2