How to detect the internal resistance of new energy batteries