Economic and mathematical models for analysis of complex systems in the economy based on generalized Samuelson-Hicks equations