Complex Potential Function in Elasticity Theory: shear and torsion solution through line integrals