Variational analysis of electrowetting on dielectric configurations