Compensating parasitic motions and cross-couplings in compliant mechanisms