Working Paper - The dynamics of profits and wages: technology, offshoring and demand