Design and Performance Evaluation of a Battery Simulator