Studies of excited D mesons in B meson decays