Edge-controlled half-metallic ferromagnetism and direct-gap semiconductivity in ZrS2 nanoribbons