Thai king agrees to junta request to lift martial law