The immersed interface method using a finite element formulation