Spin state and magnetic ordering of half-doped Nd0.5Sr0.5Co3 cobaltite