Dynamic efficiency of stock markets and exchange rates