Single-layer metal halides MX2 (X = Cl, Br, I): stability and tunable magnetism from first principles and Monte Carlo simulations | Synapse