Solar lithium battery management system design