Three-dimensional microscale numerical simulation of smoldering