Development of spontaneous magnetism and half-metallicity in monolayer MoS2