On the defect structure and diffusion kinetics in transition metal sulphides and oxides