How to detect positive and negative lead-acid batteries