Structural Change and Innovation as Exit Strategies from the Middle Income Trap