Modulation of electronic and magnetic properties of nanostructures on a monolayer of MoS2/Au(111)