The Structure of Social Disparities in Education: Gender and Wealth