The macroeconomics of imperfect competition and nonclearing markets :a dynamic general equilibrium approach