BEM4I applied to shape optimization problems