The Worpitzky identity in Coxeter groups of type D