Two-phase anaerobic degestion