The effect of wage and rent shocks on migration