Numerical modeling of plastic deformation and failure around a wellbore in compaction and dilation modes