Intergenerational mobility and optimal income taxation