A Finite Element Framework for the Electromechanical Analysis of Dielectric Elastomers