Text this: Diagnosis of a battery energy storage system based on principal component analysis