A Study on the Safety of Second-life Batteries in Battery Energy Storage Systems