Optimization of magnetic field system for glass spherical tokamak GLAST-III