A Credit-Based Theory of the Currency Risk Premium