Shape optimization and fictitious domain approach for solving free boundary problems of Bernoulli type.