Multi-scale modelling of powder compaction: from granules to tablets