Process for the measurement of the hardness and for the selection of agricultural products