Natural resource revenue could reduce number of out-of-school children