Fragmentation fractions of c and b quarks into charmed hadrons