Thailand to partially lift martial law