Monitoring of fermentation by infrared spectrometry: Alcoholic and lactic fermentations