Thai government lifts state of emergency