Role of energy in technological dynamics