Gravar-mail: Calculation of Volume Fractions of In Situ TiB and Residual Stress Distributions in Functionally Graded Composite of Ti–TiB–TiB(2)