A simple energy model for the harvesting and leakage in a supercapacitor