Ab initio study of magnetic nanopatterning of a hybrid transition metal dichalcogenides/Ir(111) system via magnetic clusters