Vector-potential finite-element formulations for two-dimensional resistive magnetohydrodynamics