Vector-potential finite-element formulations for two-dimensional resistive magnetohydrodynamics. (15th January 2019)