Magnetic and Electronic Properties of Edge-Modified Triangular WS2 and MoS2 Quantum Dots