Anisotropic thermal expansion in diborides as a function of microstrain