Numerical modeling of time-dependent spalling of rock pillars