Iran court sentences ‘US spy’ to death