Doping dependence of the lattice dynamics in Ba(Fe1-xCox)2As2 studied by Raman spectroscopy