Battery diagnosis device and method