A determination of Aμ2 and the non-perturbative vacuum energy of Yang–Mills theory in the Landau gauge