On a vector potential formulation for 3D electromechanical finite element analysis