Structural transitions and related fluctuations in La1.875-xSmxSr0.125CuO4.