Thailand lifts state of emergency in capital