Dynamic inefficiency, endogenous growth, and Ponzi games