A Stochastic Optimal Control Approach to International Finance and Foreign Debt