Vector potential formulation for three‐dimensional magnetostatics