The British pound has been whipsawed for months by worries over Thursday’s U.K. vote on European Union membership. But to fully understand the ramifications of a so-called Brexit, look to currencies such as the South African rand and the Hungarian forint.