Contribution to free boundary problems using boundary elements: Trefftz approach