Modelling Rock Failure with a Novel Continuous to Discontinuous Method