Spin triangles as optimal units for molecule-based quantum gates