Maximizing the amplitude of coherent phonons with shaped laser pulses