S3O and S3O+ in the gas phase: ring and open-chain structures