Reactions of 1 to 5 MeV deuterons on carbon