Huawei loses trade-secret case