Topology optimization of compliant mechanisms with multiple degrees of freedom