Configurable microscopic optical potentials for Bose-Einstein condensates using a digital-micromirror device