Conjugate gradient methods for the solution of boundary integral equations on a piecewise smooth boundary