Numerical simulation of cumulative damage and seismic energy release during brittle rock failure-Part I: Fundamentals