Exact solution of the generalized Peierls equation for arbitrary n-fold screw dislocation