On the effect of friction on compression and indentation between flat dies