Integrating mechanism design in a topology optimization model