Saudi says detained spy ring linked to Iran