Structures of d4 MH3X: a computational study of the influence of the metal and the ligands.