Structural and electronic properties of matlockite MFX (MSr, Ba, Pb; XCl, Br, I) compounds