Kin Networks, Marriage, and Social Mobility in Late Imperial China