Optimal design of load-driven soft dielectric generators