Immersed Finite Elements for a Second Order Elliptic Operator and Their Applications