Battery contact resistance measurement