Added a function which gives the regularized kernel for the noncubic,
nonperiodic case.