Effect of the insulator-metal transition on the phonon anomalies in La 2 CuO 4