Determinants of Educational Attainment in Rural Thailand: A Life Course Approach