Regularized formulation of potential field gradients in singular boundary method