Institutions, technology, and wage inequality