Game-theoretic models for solving problems of optimizing the capital structure of the company