Micromechanisms of borehole instability leading to breakouts in rocks