Maximal energy that can be converted by a dielectric elastomer generator