Zaslat SMS: Control of bifurcation structures using shape optimization