Endogenous innovation waves and economic growth