Physical and mathematical modelling of anaerobic digestion of organic wastes