Text this: Localizing gradient damage model of rock under compression based on stress decomposition