Generic primal-dual interior point methods based on a new kernel function