Mechanical, magnetic and electronic properties of 2D MSX (M = Ti, V, Co and Ni, X = Br and I).