Fertility, immigration, and lifetime wages under imperfect labor substitution. (December 2020)