Structural Analysis for Fault Diagnosis and Sensor Placement in Battery Packs