Demand for money in open economies