Structural and nonlinear optical properties of aligned heterotrinuclear [Ru(II)-(Spacer)-M(II)-(Spacer)-Ru(II)] complexes (M = Pd, Pt; spacer = 4-ethynylpyridine).