Flexible modulation of electronic and magnetic properties of zigzag H-MoS2 nanoribbons by crack defects