Education and poverty: a gender analysis