China devalues yuan currency to three-year low