Batteries and supercapacitors for renewable energy plants and sustainable transportation