Role of oxygen vacancy in the spin-state change and magnetic ordering in SrCoO3−δ