Cryptography expert loses senior academic positions over his support for Palestinian rights