Educational inequality across and within genders : a global perspective