Predicting the quality of a batch process using an inferential sensor