Strain in metal carbides