Earnings Mobility and Inequality: An Integrated Framework