Compaction during fragmentation and bouncing produces realistic dust grain porosities in protoplanetary discs | Synapse