Estimating education production functions in rural and urban areas