LiFePO4 vs. NMC for Residential Energy Storage: Safety and Lifespan Evaluation