How to match solar energy with lithium battery power supply