Technology, demand, and productivity: what an industry model tells us about business cycles