Nonclearing Markets: Microeconomic Concepts and Macroeconomic Applications