Interrelations between biological and chemical characteristics in anaerobic digestion