Design and Development of Hardware to Analyze and Categorize the Condition of Batteries With the Aim of Enabling Their Re-Use