Migration and Imperfect Labor Markets: Theory and Cross-Country Evidence from Denmark, Germany and the UK