Trefftz finite element method and its special purpose elements