Essays on money and banking: a search-theoretic approach