Samsung loses to Huawei in patent battle in China