Classification of rocks for rock mechanics