Implementation of Machine Learning and Internal Temperature Sensors in Nail Penetration Testing of Lithium-ion Batteries