Thailand tightens measures to curb illegal overstays