Inhomogeneous deformations and pull-in instability in electroactive polymeric films