Mega-cycles of technological revolutions