D ∗ and D meson production in muon nucleon interactions at 160 GeV/c