Competition between charge- and spin-density-wave order and superconductivity in La(1.875)Ba(0.125-x)Sr(x)CuO(4).