A comparison of lead-acid and lithium-based battery behavior and capacity fade in off-grid renewable charging applications