Validating terahertz in-line measurement of tablet mixing with discrete element modelling