Approximate analytical solution of the Thomas-Fermi equation for positive ions in a strong magnetic field