Numerical simulation of progressive rock failure and associated seismicity