The numerical solution of singular integral equations of potential theory