Exact Solution for General Torsion Problems Using Boundary Singularities