Kudryashov method for exact solutions of isothermal magnetostatic atmospheres