Harvesting maximal energy from a load-driven soft dielectric generator