Micromechanics of pressure-induced grain crushing in porous rocks