Residual stresses in polycrystalline diamond compacts