Thailand greenlights partial reopening of borders to tourists