Regulated kernel for the electric field integral equation