Text this: Mathematical models for prediction of active substance content in pharmaceutical tablets and moisture in wheat