A theoretical study of the hyperelasticity of electro‐gels