Mössbauer-type sum rules for heavy-quark meson decays