A discrete element model for the development of compaction localization in granular rock