Modelling the mechanical behaviour of pharmaceutical powders during compaction