Thailand extends emergency rule in the south