Recent years have seen a string of detentions of foreigners, most of them dual nationals from Western countries