Prediction of postharvest firmness of apple using biological switch model.