Use of mathematical-statistical methods for optimization of processes of obtaining materials