Pivotal discrepancy measures for Bayesian modelling of spatio-temporal data