Effects of microstructure on optimum heat treatment conditions in metal-matrix composites