my-utils.el: add extract-bits helper utility