Quantitative analysis and optimization of magnetization precession initiated by ultrafast optical pulses