A123 confirms Wanxiang wins bid for bankrupt battery maker