Monoatomic and dimer Mn adsorption on the Au(111) surface from first principles