Gender disparities in participation and completion vary by country group and education level