Data-based on-board diagnostics for diesel-engine NOx-reduction aftertreatment systems