Labor Market Dynamics and Technology Adoption: Theory and Empirical Evidence