A formula for the motive of the moduli stack of vector bundles on a curve