Secondary-battery monitoring device and battery pack