Exchange-rate and capital-account management for developing countries