Brittle and ductile failure of rocks: Embedded discontinuity approach for representing mode I and mode II failure mechanisms. (28th January 2015)